num1 = input("input:")
num1_pre = num1[:2]
if num1_pre == "0b" :
    patter_str = "01"
elif num1_pre == "0o":
    patter_str = "01234567"
elif num1_pre.isdigit():
    patter_str = "0123456789"
elif num1_pre == "0x":
    patter_str = "0123456789abcdef"

flag = 0   #标志位
for i in num1[2:] :
    if i not in patter_str:
        flag = 1
        break   #退出当前循环
if flag == 0:
    print("是整型")
else:
    print("不是整型")